<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/7
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注销页面</title>
</head>
<body>
<%
    session.invalidate();
%>

<div style="width: 760px">
    <%@ include file="common/header.jsp" %>
    <div class="main">
        <div style="margin-bottom: 20px"><b>退出成功! <span id="tjs">3</span> 秒之后返回登录页面</b></div>
    </div>
    <%@ include file="common/footer.jsp" %>
</div>


</body>
<script>
    var tjs = document.getElementById("tjs").innerText
    var tjsNum = Number(tjs);

    window.onload = function () {
        //三秒之后回退
        setTimeout("window.location.href = document.referrer", 3000);
        setInterval(function () {
            tjsNum = tjsNum-1
            document.getElementById("tjs").innerHTML = tjsNum;
        },1000)
    }
</script>
</html>
